<?php

namespace Endor\EndorBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class ComprasType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('Proveedor', 'entity', array('class' => 'EndorBundle:Proveedores', 'property' => 'nombre', "label" => "Proveedor"))
            ->add('ordenCompra', null, array("label" => "Orden de Compra"))
        ;
    }

    public function getName()
    {
        return 'endor_endorbundle_comprastype';
    }
}
